<?php
// 终端不退出命令执行文件
swoole_timer_tick(20000, function ($timer_id) {
    echo "tick-20000ms\n";
});
 
//3000ms后执行此函数
swoole_timer_after(100000, function () {
    echo "after 100000ms\n";
});

